cmake_minimum_required(VERSION 3.10)
project(BoostLearning)

# 设置C++标准
set(CMAKE_CXX_STANDARD 14)

# 查找Boost库
find_package(Boost 1.74 REQUIRED COMPONENTS filesystem system)
include_directories(${Boost_INCLUDE_DIRS})

# 检查Boost库是否找到
if(Boost_FOUND)
    message(STATUS "Boost found: ${Boost_INCLUDE_DIRS}")
else()
    message(FATAL_ERROR "Boost not found!")
endif()

# 设置构建类型为 Debug 并添加调试信息
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g")

# 添加 src 目录
add_subdirectory(src)

